<!--
 * @Author: Wangtao
 * @Date: 2022-07-26 14:13:50
 * @LastEditors: Wangtao
 * @LastEditTime: 2022-08-09 17:18:12
-->
<template>
  <div class="transmission-center">
    <div class="side-bar">
      <side-bar :groupSettings="groupSettings"></side-bar>
    </div>
    <div class="config-wapper">
      <keep-alive>
        <router-view></router-view>
      </keep-alive>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent, toRefs, reactive } from 'vue'
import sideBar from '@common/components/sidebar/index.vue'

export default defineComponent({
  name: 'accountComponent',
  components: {
    sideBar
  },
  // ----------------生命周期-----------------------
  setup() {
    const state = reactive({
      groupSettings: {
        transmission: {
          title: '任务'
        }
      }
    })
    return {
      ...toRefs(state)
    }
  }
})
</script>

<style lang="stylus" scoped>
.transmission-center
  .side-bar
    float left
    height 100%
  .config-wapper
    float right
    width calc(100% - 240px)
    height calc(100vh - 48px)
    overflow auto
</style>
